< previous page page_354 next page >

Page 354
Creating the Report
To start the process, choose File, New from the menu to open the New Report dialog box. The standard report format is the one we will use for the example report; however, Crystal Reports can assist in creating many different styles of reports from this dialog box:
8694cbadb9b1ef7075903f6f95fc1db2.gif
StandardCreates a standard report with rows and columns. It often has summary information at the bottom of the columns.
8694cbadb9b1ef7075903f6f95fc1db2.gif
ListingCreates a simple row and column listing of the information in a recordset.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Cross-TabInverts the order of a standard columnar report. It is often used to obtain a quick summary view of a more complex set of data.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Mail LabelCreates items such as mailing labels or name tags from the information in your database.
8694cbadb9b1ef7075903f6f95fc1db2.gif
SummaryPresents summary information about the data, such as total and average sales, or the number of attendees.
8694cbadb9b1ef7075903f6f95fc1db2.gif
GraphThis report shows the information in a graphical form.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Top NThis report shows only a specified number of the top records in the recordset. For example, this report can be used to show the top five salespeople in the company.
8694cbadb9b1ef7075903f6f95fc1db2.gif
Drill DownShows the supporting information, or detail information, for each record.
After selecting the standard report option and clicking OK, the related Report Wizard is automatically started. For the style selected, there are seven steps (see Figure 13.7) involved in creating the initial report.
The logical starting point of any report is to select the database tables required for the report. The first tab will display the data access choices and any tables already included in the report. There are two choices if using the version that comes with Visual Basic, or three choices if you have purchased the professional edition of the product.
For the phone list report, select the Data File button to display the Choose Database File dialog box shown in Figure 13.8.
If you have created the Address Book database, you can select it from this dialog box, or with some minor changes to the report, you can use the Northwind database (NWIND.MDB) that is included with Visual Basic. After you have selected the database, all the tables and queries contained in the database are added to the report's table list. If you can see the wizard in the background, you should see the tables and queries listed.

 
< previous page page_354 next page >

If you like this book, buy it!